package com.hmkj.web.controller;

import com.hmkj.common.entity.ResultEntity;
import com.hmkj.core.exception.BussinessException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExceptionController {


    @RequestMapping("404")
    public ResultEntity error404() {
        ResultEntity r = new ResultEntity();
        r.setCode(BussinessException.Code.E404.code);
        r.setMessage(BussinessException.Code.E404.msg);
        return r;
    }
}
